var s = 'leetcode'
alert('vfdvfdv')

console.log("99999999999999999");

function canPermutePalindrome(s) {
    var map = new Map()
    var arr = s.split('')
    for (let i = 0; i < arr.length; i++) {
        if (map.has(arr[i])) {
            map.set(arr[i], map.get(arr[i]) + 1);
            continue;
        }
        map.set(arr[i], 1)
    }
    console.log(map);
    var set = map.keys()
    console.log('set次数', set);
    var nums = 0;
    console.log(set.get(1));
    for (let j = 0; j < set.size; j++) {
        if (map.get(set.get(j)) / 2 != 0) nums++;
    }
    console.log(nums);
    if (nums > 1) return false;
    return true;
};
console.log(canPermutePalindrome(s));